import layout from '@/layout'

export default {
  path: '/ops_manage',
  component: layout,
  redirect: '/ops_manage/on_duty',
  name: 'ops_manage',
  meta: {
    title: 'ops_manage',
    icon: 'ops-menu'
  },
  children: [
    {
      path: '/ops_manage/on_duty', // 值班管理
      redirect: '/ops_manage/on_duty/scheduling',
      name: 'on_duty',
      meta: {
        title: 'on_duty',
        icon: 'duty-menu'
      },
      children: [{
        path: '/ops_manage/on_duty/scheduling',
        name: 'scheduling',
        component: () => import('@/views/back/ops-manage/on-duty/scheduling/index'),
        meta: {
          title: 'scheduling',
          icon: ''
        }
      },
      {
        path: '/ops_manage/on_duty/duty_record',
        name: 'duty_record',
        component: () => import('@/views/back/ops-manage/on-duty/duty-record/index'),
        meta: {
          title: 'duty_record',
          icon: ''
        }
      },
      {
        path: '/ops_manage/on_duty/personnel_record',
        name: 'personnel_record',
        component: () => import('@/views/back/ops-manage/on-duty/personnel-record/index'),
        meta: {
          title: 'personnel_record',
          icon: ''
        }
      },
      ]
    },
    {
      path: '/ops_manage/see_also', // 巡检管理
      redirect: '/ops_manage/see_also/patrol_point',
      name: 'see_also',
      meta: {
        title: 'see_also',
        icon: 'seealso-menu'
      },
      children: [
        {
          path: '/ops_manage/see_also/patrol_point',
          name: 'patrol_point',
          component: () => import('@/views/back/ops-manage/see-also/patrol-point/index'),
          meta: {
            title: 'patrol_point',
            icon: ''
          }
        },
        {
          path: '/ops_manage/see_also/patrol_scheme',
          name: 'patrol_scheme',
          component: () => import('@/views/back/ops-manage/see-also/patrol-scheme/index'),
          meta: {
            title: 'patrol_scheme',
            icon: ''
          }
        },
        {
          path: '/ops_manage/see_also/patrol_record',
          name: 'patrol_record',
          component: () => import('@/views/back/ops-manage/see-also/patrol-record/index'),
          meta: {
            title: 'patrol_record',
            icon: ''
          }
        },
      ]
    },
    {
      path: '/ops_manage/upkeep', // 维护管理
      redirect: '/ops_manage/upkeep/acpp',
      name: 'upkeep',
      meta: {
        title: 'upkeep',
        icon: 'upkeep-menu'
      },
      children: [
        {
          path: '/ops_manage/upkeep/acpp',
          name: 'acpp',
          component: () => import('@/views/back/ops-manage/upkeep/acpp/index'),
          meta: {
            title: 'acpp',
            icon: ''
          }
        },
        {
          path: '/ops_manage/upkeep/service',
          name: 'service',
          component: () => import('@/views/back/ops-manage/upkeep/service/index'),
          meta: {
            title: 'service',
            icon: ''
          }
        },
        {
          path: '/ops_manage/upkeep/question',
          name: 'question',
          component: () => import('@/views/back/ops-manage/upkeep/question/index'),
          meta: {
            title: 'question',
            icon: ''
          }
        },
      ]
    },
    {
      path: '/ops_manage/access_corridor', // 入狼管理
      redirect: '/ops_manage/access_corridor/line_apply',
      name: 'access_corridor',
      meta: {
        title: 'access_corridor',
        icon: 'line-menu'
      },
      children: [
        {
          path: '/ops_manage/access_corridor/line_apply',
          name: 'line_apply',
          component: () => import('@/views/back/ops-manage/access-corridor/line-apply/index'),
          meta: {
            title: 'line_apply',
            icon: ''
          }
        },
        {
          path: '/ops_manage/access_corridor/line_manage',
          name: 'line_manage',
          component: () => import('@/views/back/ops-manage/access-corridor/line-manage/index'),
          meta: {
            title: 'line_manage',
            icon: ''
          }
        },
      ]
    },
    {
      path: '/ops_manage/work_order',
      name: 'work_order',
      component: () => import('@/views/back/ops-manage/work-order/index'),
      meta: {
        title: 'work_order',
        icon: 'work-menu'
      }
    },
    {
      path: '/ops_manage/working',
      name: 'working',
      component: () => import('@/views/back/ops-manage/working/index'),
      meta: {
        title: 'working',
        icon: 'working-menu'
      }
    },
    {
      path: '/ops_manage/energy_consumption',
      name: 'energy_consumption',
      component: () => import('@/views/back/ops-manage/energy-consumption/index'),
      meta: {
        title: 'energy_consumption',
        icon: 'energy-menu'
      }
    },
    {
      path: '/ops_manage/work_ticket',
      name: 'work_ticket',
      component: () => import('@/views/back/ops-manage/work-ticket/index'),
      meta: {
        title: 'work_ticket',
        icon: 'ticket-menu'
      }
    },
  ]
}
